<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>天天互保-申请互保</title>
<meta name="keywords" content="天天互保"> 
<meta name="description" content="天天互保"> 
<meta content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" name="viewport">
<link rel="stylesheet" href="__CSS__/style.css">
<link rel="stylesheet" href="__CSS__/index.css">
<link rel="stylesheet" href="__CSS__/admin.css">
<link rel="stylesheet" href="__CSS__/type_info.css">
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/jquery.validate.js"></script>
<script src="__JS__/member.validate.js"></script>
</head>
<body>
<form action="__URL__/addhubao" id="form1"  enctype="multipart/form-data" method="post">
	<ul class="uslist font14">
		<li class="updates">
			<p>被保护人</p>
			<div class="inputs guanxi" >
				<div class="inputtype font14" id='famvalue'>{$user}({$with})</div>
				<input type="hidden" name="gid" value="{$gid}" >
				<label class="errorinfo"><img src="__IMG__/selemore.png" class="selemore"></label>
			</div>
		</li>
		<li class="updates nobor_bottom" style="height:auto;overflow:hidden;">
			<p>描述</p>
			<div class="inputs" style="height:auto;overflow:hidden;">
				<textarea class="miaoshu font14" name="content" onfocus="if(value=='情况描述'){value=''}"
					onblur="if (value ==''){value='情况描述'}">情况描述</textarea>
				<label for="idcard" class="errorinfo"> </label>
			</div>
		</li>
		<li class="updates nobor_bottom" style="height:auto;overflow:hidden;">
		<input type="file" class="file" name="upload" value="上传文件" placeholder="">
		</li>
	</ul>
	<input type="button" value="申请" class="submits font14 top15">
	<div class="notes1 font14"><input type="checkbox" checked /> 同意《<a href="articles.html" style="color:#1089ef;">会员须知</a>》</div>
</form>

<script>

$(".submits").click(function() {
	 var file=$(".file").val();
	 if (file=='') {
	 	alert('文件不能为空');
	 }else{
	 	$('#form1').submit();
	 }
})

</script>
</body>
</html>